<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>会员分销</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../../../../elementUI/index.css">
  <link rel="stylesheet" href="../../../../css/index.css">
  <link rel="stylesheet" href="../../../../component/pear/css/pear.css" />
</head>

<body>
  <div id="app" class="minWidth">
    <el-form :inline="true" :form="form">
      <el-form-item>
        <el-input v-model="form.serachKey" placeholder="请输入内容" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSerach">查询</el-button>
      </el-form-item>
    </el-form>

    <el-table :data="tableData" stripe border height="calc(100vh - 140px)" style="width: 100%">
      <el-table-column label="序号" width="50" type="index" align="center"></el-table-column>
      <el-table-column prop="Collection_SerialNumber" label="订单流水号" align="center"></el-table-column>
      <el-table-column prop="Nick" label="用户昵称" align="center"></el-table-column>
      <el-table-column prop="Member_Name" label="用户姓名" align="center">
        <template v-slot="{row}">
          <span :style="row.Member_Name==''?'color: red;':''">{{row.Member_Name==''?'未录入姓名':row.Member_Name}}</span>  
        </template>
      </el-table-column>
      <el-table-column prop="Prepayment_Card_Scheme_Name" label="储值卡" align="center"></el-table-column>
      <el-table-column prop="Amount" label="储值金额" align="center"></el-table-column>
      <el-table-column prop="Row_Status" label="是否收款" align="center">
        <template v-slot="{row}">
          <el-tag :type="row.Row_Status=='0'?'':'success'">{{row.Row_Status=='0'?'未收款':'已收款'}}</el-tag>
        </template>
      </el-table-column> 
      <el-table-column prop="Gift_Amount" label="赠送金额" align="center"></el-table-column>
      <el-table-column prop="Collection_Date" label="下单/收款时间" align="center" width="180"></el-table-column>
      <el-table-column prop="Collection_Amount" label="收款金额" align="center"></el-table-column>
      <el-table-column prop="Collection_Type" label="收款方式" align="center">
        <template v-slot="{row}">
          <i class="layui-icon" :class="row.Collection_Type=='现金'?'layui-icon-rate-solid':''"></i> {{row.Collection_Type}}
        </template>
      </el-table-column>
      <el-table-column prop="App_Name" label="所属小程序" align="center"></el-table-column> 
      <el-table-column label="操作" align="center">
        <template v-slot="{row}">
          <el-button :type="row.Row_Status=='0'&&row.Collection_Type=='现金'?'success':'info'" size="small" @click="handle(row)">确认收款</el-button>
        </template>
      </el-table-column>
    </el-table>
    <el-pagination background v-show="total > 0" @size-change="handleSizeChange"
      @current-change="handleCurrentChange" :current-page="form.page" :page-sizes="[10,20,30,50]"
      :page-size="form.limit" layout="total, sizes, prev, pager, next, jumper" :total="total">
    </el-pagination>
  </div>
  <script type="text/javascript" src="../../../../js/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../../js/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../../js/vue.min.js"></script>
  <script type="text/javascript" src="../../../../elementUI/index.js"></script>
  <script type="text/javascript" src="../../../../js/utils.js"></script>
  <script type="text/javascript" src="./js/StoredvaluecardPayment.js"></script>
</body>

</html>